/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hoja7bst;

import structure5.RedBlackTree;

/**
 *
 * @author Vinicio Gomez
 */
public class WordRedBlackTree implements WordSet {

    RedBlackTree<Word> tree;

    public WordRedBlackTree() {
       tree = new RedBlackTree();
    }
    
    @Override
    public void add(Word wordObject) {
        tree=tree.add(wordObject);
    }

    @Override
    public Word get(Word word) {
        return tree.get(word);
    }
}
